package com.alibaba.citrus.ots;

import com.alibaba.lattice2.epoch.boot.EnableEpochEngine;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
//扫描自己的应用包
// TODO fix package name
@ComponentScan({"com.alibaba.citrus.ots", "com.alibaba.cirtus.ots", "com.alibaba.lattice2.epoch.sdk"})
//如果有controller,需要添加该注解
@EnableWebMvc
//开启 springboot 事务管理
@EnableTransactionManagement
//如果使用tbbpm和tmf3,需要添加
@Import(com.alibaba.cz.boot.configuration.TMFAutoConfiguration.class)
//启用 cglib 代理
//@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableEpochEngine
public class OtsApplication {
}
